<template>
  <div class="table">
    <div class="table-main">
      <div class="table-title-box">
        <h1 class="table-title">成都商标受理窗口业务各个类别受理量汇总表</h1>
        <p class="tabel-title-txt">（所属日期：2020年度）</p>
      </div>
      <el-table
        :data="tableData"
        class="table-content"
        :border="true"
        stripe
        :fit="true"
        :cell-style="{'text-align':'center'}"
        :header-cell-style="{'text-align':'center','color':'#666'}"
        :header-row-style="{'background':'red'}"
        max-height="600px"
        show-summary
      >
        <el-table-column prop="address" label="类别"></el-table-column>
        <el-table-column prop="address" label="省内"></el-table-column>
        <el-table-column prop="address" label="成都"></el-table-column>
        <el-table-column prop="address" label="天府新区"></el-table-column>
        <el-table-column prop="address" label="省外"></el-table-column>
        <el-table-column prop="address" label="合计"></el-table-column>
      </el-table>
    </div>

    <el-pagination
      class="pagination"
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage"
      :page-sizes="[10, 20, 30]"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total"
    ></el-pagination>
  </div>
</template>
<script>
export default {
  data() {
    return {
      currentPage: 1,
      total: 0,

      tableData: [
        {
          address: 1,
          zip: 0
        }, {
          address: 1,
          zip: 0
        }, {
          address: 1,
          zip: 0
        }, {
          address: 1,
          zip: 0
        }, {
          address: 1,
          zip: 0
        }, {
          address: 1,
          zip: 0
        }, {
          address: 1,
          zip: 0
        }, {
          address: 1,
          zip: 0
        }, {
          address: 1,
          zip: 0
        }
      ]
    }
  },
  methods: {
    //每页显示的条数
    handleSizeChange(val) {
    },
    // 页数切换
    handleCurrentChange(val) {
    },

  }
}
</script>
<style lang="less" scoped>
.table {
  .table-main {
    margin-bottom: 20px;
    .table-title-box {
      padding: 20px 0;
      text-align: center;
      .table-title {
        font-size: 28px;
      }
      .tabel-title-txt {
        color: #777;
        font-size: 14px;
        padding: 10px 0;
      }
    }
    .table-content {
      width: 100%;
      font-size: 14px;
    }
  }
  .pagination {
    text-align: center;
  }
  // 表格单元格居中
  /deep/.el-table .has-gutter td {
    text-align: center;
  }
}
</style>